package com.app.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ym_attachment")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class AttModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer adminUserId;
    private String name;//文件名
    private String attUrl;//地址
    private Integer userId;//人员id
    private String attType;//文件类型
    private String size;//文件大小
    private Integer type;//1图片2视频
    private Timestamp crtTime;
    private Timestamp upTime;

    @TableField(exist = false)
    private String personName;// 所属人名字字段
    @TableField(exist = false)
    private String departmentName;// 所属部门字段
    @TableField(exist = false)
    private String typeText;// 所属部门字段
    @TableField(exist = false)
    private String isXxText;// 字段
    @TableField(exist = false)
    private String isEngineText;// 字段
    @TableField(exist = false)
    private Integer count;
}
